package com.examination.domain.exam.entity;

import com.examination.domain.exam.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import me.kevinwalker.core.annotation.Collection;
import me.kevinwalker.core.annotation.RecordField;

import java.io.Serializable;
import java.util.List;

@Data
@Collection("questions")
@NoArgsConstructor
@AllArgsConstructor
public class Question implements Serializable {

    private String question;

    private String tip;

    /**
     * 题目类型，0为单选，1为多选，2为填空，3为判断，4为简答
     */
    private Integer type;

    private Double score;

    /**
     * 选项
     */
    private List<String> answers;

    /**
     * 答案
     */
    private List<String> rightAnswers;

    @RecordField("_id")
    private String id;

    private BaseEntity baseEntity;
}
